package com.yanqu.road.entity.enums.activity.pawnshop;

/**
 * 途径
 */
public enum ePawnshopWay {
	Default("初始生成", 0),
	PawnshopUpgradeReward("当铺升级奖励", 1),
	MoneyReward("送钱奖励", 2),
	SellItem("售卖物件", 3),
	BuyItem("购买物件", 4),
	Gemstone("赌石", 5),
	Hock("典当", 6),
	HockRedemption("典当赎回", 7),
	;

	private String name;
	private int intValue;

	ePawnshopWay(String name, int value) {
		this.intValue = value;
		this.name = name;
	}

	public int getValue() {
		return intValue;
	}

	public String getName() {
		return name;
	}

	public static ePawnshopWay forValue(int value) {
		for (ePawnshopWay type : ePawnshopWay.values()) {
			if (type.intValue == value) {
				return type;
			}
		}
		return null;
	}
}
